package str;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
 
@Entity
@Table(name = "Product")
public class Product{
 
    @Id
    @Column(name="proid")
    private int productId;
 
    @Column(name="proName", length=10)
    private String proName;
 
    @Column(name="price")
    private double price;
 
    public void setProductId(int productId)
    {
        this.productId = productId;
    }
    public int getProductId()
    {
        return productId;
    }
 
    public void setProName(String proName)
    {
        this.proName = proName;
    }
    public String getProName()
    {
        return proName;
    }
 
    public void setPrice(double price)
    {
        this.price = price;
    }
    public double getPrice()
    {
        return price;
    }
	@Override
	public String toString() {
		return "Product [productId=" + productId + ", proName=" + proName
				+ ", price=" + price + "]";
	}
    
    
}